<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>{$title}</title>
  <link rel="stylesheet" href="//wiki.evildao.com/style.css">
</head>
<body>
  <nav class="nav markdown-body">{$nav}</nav>
  <article class="markdown-body">{$main}</article>
  <script src="//cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
  <script>
    var url = window.location.href;
    $('.nav ul li p').next().hide();
    $('.nav ul li p [href="'+url+'"]').css('background-color','#ddd');
    $('.nav ul li p [href="'+url+'"]').parents().show();
    $('.nav p').click(function(){
      // $(this).parent('p').next().toggle();
      $(this).next().toggle();
    });
  </script>
</body>
</html>